#include "ObjectStomper/ObjectStomperGUI.h"
#include "StompedReality/Core/FileSystem.h"
#include "StomperLib/BaseLayout.h"
#include "StomperLib/Editor.h"
#ifdef LINUX
#include "StompedReality/Core/Graphics/LinuxRenderSystem.h"
#elif WIN32
#include "StompedReality/Core/Graphics/Windows/WGLRenderSystem.h"
#endif
using namespace StompedReality;
int main ( int argc, char** argv )
{
  StomperLib::Editor editor;
#ifdef LINUX
  editor.setRenderer( new StompedReality::Graphics::LinuxRenderSystem( ));
#elif WIN32
  editor.setRenderer( new StompedReality::Graphics::WGLRenderSystem( ));
#endif
  editor.ParseConfig(  "Content/system.json" );
  ObjectStomper::ObjectStomperGUI gui( editor.getCanvas( ));
  gui.SetGame( &editor );
  gui.CreateBaseElements( );
  if (!editor.IsInitialized( ))
    return -1;
  editor.loop( );
  return 0;
}

